package cc.mrbird.febs.accounting.entity;

import java.util.Date;

import lombok.Data;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 *  Entity
 *
 * @author baoyinlei
 * @date 2021-09-28 23:26:45
 */
@Data
@TableName("bk_project")
public class Project {

    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 
     */
    @TableField("project_code")
    private String projectCode;

    /**
     * 
     */
    @TableField("project_name")
    private String projectName;

    /**
     *
     */
    @TableField("manual_tax")
    private Integer manualTax;

    /**
     * 
     */
    @TableField("is_deleted")
    private Integer isDeleted;

    /**
     * 
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 
     */
    @TableField("modify_time")
    private Date modifyTime;

    /**
     * 
     */
    @TableField("create_by")
    private String createBy;

    /**
     * 
     */
    @TableField("modify_by")
    private String modifyBy;

    @TableField("remark")
    private String remark;

    @TableField("company_id")
    private String companyId;

    @TableField(exist = false)
    private String companyName;

    @TableField("comment")
    private String comment;

    @TableField("comment2")
    private String comment2;

    @TableField("principal")
    private String principal;

    @TableField(exist = false)
    private String projectType;
    @TableField("type_id")
    private String projectTypeId;
    @TableField("project_city")
    private String projectCity;

    @TableField("type_id")
    private String typeId;

    @TableField(exist = false)  // 需要根据角色公司权限查询
    private Boolean needPermission;

    @TableField(exist = false)  // 需要有项目记录
    private Boolean needCost;

    @TableField(exist = false)  // 需要有项目记录
    private Integer year;
}